<div class="panel panel-default panel-widget">
    <div class="panel-body" style="background-color: #fff;padding: 10px ">
        <h4 class="header-dividing" id="minimum-setup">基本类型</h4>
        <div class="row">
            <div class='col-sm-6'>
                <div id="cascadepicker" data-name="caspicker2" class="btn-group cascade" >
                    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                        <span class="text">收货地址</span>
                        <span class="caret"></span>
                    </button>
                </div>
            </div>
<!--             <div class='col-sm-6'>
                <div data-name="caspicker2" class="btn-group cascade" >
                    <button class="btn btn-default" type="button" id="dropdownMenu2">
                        <span class="text">获取选择值</span>
                    </button>
                </div>
            </div> -->
        </div>

                <br/>
                <div class="mu-tabbable border-remove">
                    <ul class="nav nav-tabs ">
                        <li class="active"><a href="#tab_5_1" data-toggle="tab">Javascript</a>
                        </li>
                        <li><a href="#tab_5_2" data-toggle="tab">Html</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab_5_1">
                        无
                        </div>
                        <div class="tab-pane" id="tab_5_2">
                        <pre class="prettyprint">
&lt;div class="btn-group cascade" rel="cascadepicker" data-url="/assets/ajax/data/address.txt"&gt;
    &lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"&gt;
        &lt;span class="text"&gt;收货地址&lt;/span&gt;
        &lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
&lt;/div&gt;
                        </pre>
                        </div>
                    </div>
                </div>

    </div>
</div>
<script type="text/javascript">
window.prettyPrint();
$(function(){
    $("#cascadepicker").cascadepicker({
        'url':"/assets/ajax/data/address.txt",
        'cascadeItems':['省','市','区/县'],
        'initValue':['000205','000225','000041']
    });

    // $("#dropdownMenu2").click(function(){
    //     var selected = $("#cascadepicker").cascadepicker('getAllSelectedOption');
    //      alert(selected[0]);
    //      alert(selected[1]);
    //      alert(selected[2]);
    // });
});
</script>
